﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DeviceSDK.Radar;

namespace DeviceSDK.NetTraffic
{
    public class NetTrafficHandler
    {
        public delegate void TrafficApiDataArriveHandler(string TrafficID, string Jam, string Speed, string Time);
        public static event TrafficApiDataArriveHandler TrafficeApiDataArriveEvent = null;

        public delegate void TrafficMapPointDataArriveHandler(string SectionID, string Jam);
        public static event TrafficMapPointDataArriveHandler TrafficeMapPointDataArriveEvent = null;


        public static void TrafficApiDataArrive(string TrafficID, string Jam, string Speed, string Time)
        {
            if (TrafficeApiDataArriveEvent != null)
                TrafficeApiDataArriveEvent(TrafficID, Jam, Speed, Time);
        
        }


        public static void TrafficeMapPointDataArrive(string SectionID, string Jam)
        {
            if (TrafficeMapPointDataArriveEvent != null)
                TrafficeMapPointDataArriveEvent(SectionID, Jam);
        }
    }
}
